package com.fbs.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fbs.entity.TbMain;
import com.fbs.mapper.TbMainMapper;
import com.fbs.service.TbMainService;
import com.fbs.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13745
* @description 针对表【tb_main】的数据库操作Service实现
* @createDate 2023-03-19 16:44:17
*/
@Service
public class TbMainServiceImpl extends ServiceImpl<TbMainMapper, TbMain>
implements TbMainService {
@Autowired
private TbMainMapper tbMainMapper;
    @Override
    public Result findAll() {
        List<TbMain> tbMains = tbMainMapper.selectList(null);
        return new Result(2000,"查询成功",tbMains);
    }
}
